package JZOffer;

// https://leetcode.cn/problems/zuo-xuan-zhuan-zi-fu-chuan-lcof/?envType=study-plan&id=lcof&plan=lcof&plan_progress=xxj1ozje
// 左旋字符串
public class Day003_2 {
    public String reverseLeftWords(String s, int n) {
        StringBuilder stringBuilder = new StringBuilder();
        String s1 = s.substring(0, n);
        String s2 = s.substring(n, s.length());
        stringBuilder.append(s2);
        stringBuilder.append(s1);
        return stringBuilder.toString();
    }
}
